package com.keepsport.keepsportapi.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.keepsport.keepsportapi.dto.UserPlanDto;
import com.keepsport.keepsportapi.entity.UserCourse;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserPlanDao extends BaseMapper<UserCourse> {
    @Select("SELECT up.cid,tp.title,tp.imgurl FROM t_user_plan up INNER JOIN t_paln_tables tp ON up.cid=tp.id WHERE up.uid=#{uid}")
    List<UserPlanDto> selectByUid(int uid);

}
